import request from '@/utils/request'

// 登录
export function login(username, password) {
  const params = {}
  params.username = username
  params.password = password
  params.scope = 0
//  params.serialNo = "super";
  return request({
    url: '/uaa/manage/login/account_login',
    method: 'post',
    data: params
  })
}

// 获取用户信息
export function getInfo() {
  return request({
    url: '/kd_manage/user/user_info_menus',
    method: 'get',
    params: {}
  })
}

// 退出
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

export function modifyPw(data) {
  return request({
    url: '/kd_manage/user/modify_pw',
    method: 'post',
    data: data
  })
}
